﻿@{
    ViewBag.Title = "治疗人员管理";
}
@section headerSection{
    <link href="~/Resources/mainFrame/js/plugins/zTree3/css/demo.css" rel="stylesheet" />
    <link href="~/Resources/mainFrame/js/plugins/zTree3/css/metroStyle/metroStyle.css" rel="stylesheet" />
    <script src="~/Resources/mainFrame/js/plugins/zTree3/js/jquery.ztree.core.min.js"></script>
    <script src="~/Resources/mainFrame/js/plugins/zTree3/js/jquery.ztree.excheck.min.js"></script>
    <script src="~/Resources/mainFrame/js/plugins/zTree3/js/jquery.ztree.exedit.min.js"></script>
    <script src="~/Resources/tools/search_zTree.js"></script>
    <script src="~/Resources/mainFrame/js/plugins/bootstrap-table/export/tableExport.js"></script>
    <script src="~/Resources/mainFrame/js/plugins/bootstrap-table/export/bootstrap-table-export.min.js"></script>
    <script src="~/Resources/tools/jsExportToExecl.js"></script>
    <style>
        body {
            font-family: '微软雅黑';
            font-size: 14px;
            color: #676a6c;
        }

        a {
            font-size: 15px;
        }

        .float-unit {
            height: 100%;
            border: 1px solid #E7EAEC;
            border-top-width: 0px;
            border-bottom-width: 0px;
            margin-bottom: 0px;
        }

        .left-sm-3 {
            padding-left: 0px;
        }

        .right-sm-9 {
            padding-right: 0px;
        }

        .ibox-unit {
            overflow-y: auto;
            height: 89%;
            padding: 0px;
        }

        #exampleToolbar div {
            margin-bottom: 0px;
        }

        #exampleToolbar > .form-group {
            float: left;
            margin: 0;
            margin-right: 5px;
            margin-top: 1px;
        }

        .form-group > button {
            margin-top: -2px;
            margin-bottom: 2px;
        }

        #unitTreezTreeData {
            border: 0;
            border-top: 1px solid #E7EAEC;
            background: #FFFFFF;
        }

            #unitTreezTreeData li {
                line-height: 28px;
            }

                #unitTreezTreeData li:hover {
                    background: #F5F5F5;
                }

        #search_condition {
            width: 99%;
        }

        .selectTreezTreeLI {
            background-color: #2DC1C3;
            color: #fff;
        }

        #nodeFormTable label {
            font-weight: bold;
        }

        .fileClass label {
            text-align: right;
        }

        #upFileForm .col-sm-7 {
            margin-bottom: 8px;
        }

        #bootstrap-duallistbox-selected-list_duallistbox_demo1 option, bootstrap-duallistbox-nonselected-list_duallistbox_demo1 option {
            height: 30px;
            line-height: 30px;
            padding-top: 5px;
        }

            #bootstrap-duallistbox-selected-list_duallistbox_demo1 option:hover, bootstrap-duallistbox-nonselected-list_duallistbox_demo1 option:hover {
                background-color: antiquewhite;
            }

        .buttons {
            width: 100%;
        }

            .buttons button {
                width: 50%;
            }
    </style>
}
<div class="wrapper animated fadeInRight autoHeight">
    <!-- Panel Other -->
    <div class="row autoHeight" style="background-color: #fff;">
        <!--选择单位-->
        <div id="unitTree" class="col-sm-2" style="height:100%;padding:0;border:1px solid #E7EAEC;"></div>
        <div class="col-sm-10 col-sm-leftRight" style="padding-left: 5px; margin-top: 2px;">
            <!-- Example Toolbar -->
            <div class="example">
                <div class="btn-group hidden-xs" id="exampleToolbar" role="group">
                    @{
                        List<string> folderList = (List<string>)ViewBag.elementList;
                        if (folderList.Contains("treatEdit"))
                        {
                            <button id="treatEdit" type="button" class="btn btn-outline btn-primary">
                                <i class="glyphicon glyphicon-pencil" aria-hidden="true">编辑</i>
                            </button>
                        }
                        if (folderList.Contains("btnSearch"))
                        {
                            <div class="form-group" style="width:250px;margin-left:2px;">
                                <input id="treatName" name="treatName" type="text" class="form-control" placeholder="请输入姓名、治疗编号、身份证号查询">
                            </div>
                            <div class="form-group" style="width: 300px;margin-top:-1px;">
                                <select id="hosId" name="hosId" class="selectpicker show-tick" data-live-search="true" title="请选择美沙酮检测医院" placeholder="请选择美沙酮检测医院"></select>
                            </div>
                            <div class="form-group">
                                <button id="btnSearch" class="btn btn-primary" type="button"><i class="fa fa-search"></i>&nbsp;查询</button>
                            </div>
                        }
                        if (folderList.Contains("transferHos"))
                        {
                            <div class="form-group">
                                <button id="transferHos" class="btn btn-primary" type="button" disabled="disabled">
                                    <i class="fa fa-user"></i>&nbsp;转诊
                                </button>
                            </div>
                        }
                        if (folderList.Contains("treatExportExcel"))
                        {
                            <div class="form-group">
                                <button id="treatExportExcel" class="btn btn-primary" type="button">
                                    <i class="fa fa-download"></i>&nbsp;导出Excel
                                </button>
                            </div>
                        }
                    }
                </div>
                <table id="exampleTableToolbar" data-mobile-responsive="true" data-radio="true"></table>
                <a id="personExport" style="display:none;"></a>
            </div>
            <!-- End Example Toolbar -->
        </div>
    </div>
    <!-- End Panel Other -->
</div>
<!-- 编辑 -->
<div id="orgform" style="width: 500px; height:100%; overflow: hidden; display: none;">
    <form class="form-horizontal m-t" id="orgFormTable" method="post">
        <div class="form-group" id="markPass">
            <label class="col-sm-3 control-label">治疗卡号<span class="glyphicon glyphicon-asterisk requiredtitle"></span>：</label>
            <div class="col-sm-9">
                <input id="hos_code" name="hos_code" type="text" class="form-control input-sm" placeholder="请输入治疗卡号" title="请输入治疗卡号" required="" aria-required="true" />
                <input type="hidden" id="user_id" name="user_id" />
                <input type="hidden" id="hos_id" name="hos_id" />
                <input type="hidden" id="user_identify" name="user_identify" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">当前剂量<span class="glyphicon glyphicon-asterisk requiredtitle"></span>：</label>
            <div class="col-sm-9">
                <input id="dose_num" name="dose_num" type="text" class="form-control input-sm" placeholder="请输入当前剂量" title="请输入当前剂量" required="" aria-required="true" />
            </div>
        </div>
    </form>
</div>
<!--  转诊医院 -->
<div id="orgHosform" style="width: 500px; height:100%; overflow: hidden; display: none;">
    <form class="form-horizontal m-t" id="orgHosFormTable" method="post">
        <div class="form-group" id="markPass">
            <label class="col-sm-3 control-label">转入医院<span class="glyphicon glyphicon-asterisk requiredtitle"></span>：</label>
            <div class="col-sm-9">
                <select id="hoid" name="hoid" class="selectpicker show-tick" data-live-search="true" title="请选择美沙酮检测医院" placeholder="请选择美沙酮检测医院"></select>
                <input type="hidden" id="userId" name="userId" />
            </div>
        </div>
    </form>
</div>
@section footSection{
    <script src="~/Resources/mainFrame/js/plugins/treeview/v1.2.0/bootstrap-treeview.js"></script>
    <script src="~/Resources/tools/treeview-search-custom.js"></script>
    <script src="~/Resources/myScript/BaneTreatPerson/treatManager.js"></script>
    <script>
        $(function () {
            //初始化Page
            treatManager.initPage();
        });
    </script>
}

